export interface Book {
  id: number;
  title: string;
  author: string;
  isbn: string;
  categoryId: number;
  img: string;
  stock: number;
  total: number;
  description: string;
  borrowCount: number;
  favoriteCount: number;
  createTime: Date;
}

export interface Category {
  id: number;
  name: string;
}

export interface CategoryWithBooksVO {
  category: Category;
  books: Book[];
  total: number; // 总条数
  pages: number; // 总页数
  current: number; // 当前页码
  size: number; // 每页条数
}

export interface Item {
  title: string;
  id: number;
  author: string;
}
